how to set serial number in gridview in asp net

135

how to set serial number in gridview in asp net -

     <asp:TemplateField>
        <ItemTemplate>
             <%#Container.DataItemIndex+1 %>
        </ItemTemplate>
    </asp:TemplateField>

Comments

Submit
0 Comments